import { createRouter, createWebHistory,RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    component: () => import("../components/HelloWorld.vue"),
  },
  {
    path: "/About",
    component: () => import("../views/About.vue"),
  },
  {
    path: "/AddMember",
    component: () => import("../views/AddMember.vue"),
  },
  {
    path: "/ShowMember",
    component: () => import("../views/ShowMember.vue"),
  },
  {
    path: "/UptMember",
    component: () => import("../views/UptMember.vue"),
  },
  {
    path: "/Intergralview",
    component: () => import("../views/Intergralview.vue"),
  },
  {
    path: "/ChatView",
    component: () => import("../views/ChatView.vue"),
  },
  {
    path: "/MemberView",
    component: () => import("../views/MemberView.vue"),
  },
  {
    path: "/AddLevel",
    component: () => import("../views/AddLevel.vue"),
  },
  {
    path: "/ShowLevel",
    component: () => import("../views/ShowLevel.vue"),
  },
  {
    path: "/AddRights",
    component: () => import("../views/AddRights.vue"),
  },
  {
    path: "/sendrights",
    component: () => import("../views/sendrights.vue"),
  },
  {
    path: "/UptRights",
    component: () => import("../views/UptRights.vue"),
  }
]

const router = createRouter({
  history:createWebHistory(),
  routes
})

export default router